package net.sunxiaolong.tool.captureinsureknowledge.repository;

import net.sunxiaolong.tool.captureinsureknowledge.entity.PingAnKnowledge;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author 晓龙
 * @create 2018-08-16 下午2:06
 * @desc
 **/
@Repository
public interface PingAnKnowledgeRepository extends CrudRepository<PingAnKnowledge, Long> {

    @Query(value = "SELECT pak FROM PingAnKnowledge pak")
    List<PingAnKnowledge> getAllData();

}
